How to decide what to learn